<!DOCTYPE html>

















































<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

  <meta name="description" content="Javadoc API documentation for Fresco." />

<link rel="shortcut icon" type="image/x-icon" href="../../../../favicon.ico" />
<title>

  GifImage - Fresco API


| Fresco

</title>
<link href="../../../../../assets/doclava-developer-docs.css" rel="stylesheet" type="text/css" />
<link href="../../../../../assets/customizations.css" rel="stylesheet" type="text/css" />
<script src="../../../../../assets/search_autocomplete.js" type="text/javascript"></script>
<script src="../../../../../assets/jquery-resizable.min.js" type="text/javascript"></script>
<script src="../../../../../assets/doclava-developer-docs.js" type="text/javascript"></script>
<script src="../../../../../assets/prettify.js" type="text/javascript"></script>
<script type="text/javascript">
  setToRoot("../../../../", "../../../../../assets/");
</script>
<script src="../../../../../assets/doclava-developer-reference.js" type="text/javascript"></script>
<script src="../../../../../assets/navtree_data.js" type="text/javascript"></script>
<script src="../../../../../assets/customizations.js" type="text/javascript"></script>
<noscript>
  <style type="text/css">
    html,body{overflow:auto;}
    #body-content{position:relative; top:0;}
    #doc-content{overflow:visible;border-left:3px solid #666;}
    #side-nav{padding:0;}
    #side-nav .toggle-list ul {display:block;}
    #resize-packages-nav{border-bottom:3px solid #666;}
  </style>
</noscript>
</head>

<body class="">

<div id="header">
    <div id="headerLeft">
    
      <span id="masthead-title"><a href="../../../../packages.html">Fresco</a></span>
    
    </div>
    <div id="headerRight">
      
  <div id="search" >
      <div id="searchForm">
          <form accept-charset="utf-8" class="gsc-search-box" 
                onsubmit="return submit_search()">
            <table class="gsc-search-box" cellpadding="0" cellspacing="0"><tbody>
                <tr>
                  <td class="gsc-input">
                    <input id="search_autocomplete" class="gsc-input" type="text" size="33" autocomplete="off"
                      title="search developer docs" name="q"
                      value="search developer docs"
                      onFocus="search_focus_changed(this, true)"
                      onBlur="search_focus_changed(this, false)"
                      onkeydown="return search_changed(event, true, '../../../../')"
                      onkeyup="return search_changed(event, false, '../../../../')" />
                  <div id="search_filtered_div" class="no-display">
                      <table id="search_filtered" cellspacing=0>
                      </table>
                  </div>
                  </td>
                  <!-- <td class="gsc-search-button">
                    <input type="submit" value="Search" title="search" id="search-button" class="gsc-search-button" />
                  </td>
                  <td class="gsc-clear-button">
                    <div title="clear results" class="gsc-clear-button">&nbsp;</div>
                  </td> -->
                </tr></tbody>
              </table>
          </form>
      </div><!-- searchForm -->
  </div><!-- search -->
      
    </div>
</div><!-- header -->


  <div class="g-section g-tpl-240" id="body-content">
    <div class="g-unit g-first side-nav-resizable" id="side-nav">
      <div id="swapper">
        <div id="nav-panels">
          <div id="resize-packages-nav">
            <div id="packages-nav">
              <div id="index-links">
                <a href="../../../../packages.html"  >Packages</a> | 
                <a href="../../../../classes.html" >Classes</a>
              </div>
              <ul>
                
    <li class="selected api apilevel-">
  <a href="../../../../com/facebook/animated/gif/package-summary.html">com.facebook.animated.gif</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/animated/giflite/package-summary.html">com.facebook.animated.giflite</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/animated/giflite/decoder/package-summary.html">com.facebook.animated.giflite.decoder</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/animated/giflite/draw/package-summary.html">com.facebook.animated.giflite.draw</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/animated/giflite/drawable/package-summary.html">com.facebook.animated.giflite.drawable</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/animated/webp/package-summary.html">com.facebook.animated.webp</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/animated/webpdrawable/package-summary.html">com.facebook.animated.webpdrawable</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/binaryresource/package-summary.html">com.facebook.binaryresource</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/cache/common/package-summary.html">com.facebook.cache.common</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/cache/disk/package-summary.html">com.facebook.cache.disk</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/callercontext/package-summary.html">com.facebook.callercontext</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/common/activitylistener/package-summary.html">com.facebook.common.activitylistener</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/common/disk/package-summary.html">com.facebook.common.disk</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/common/executors/package-summary.html">com.facebook.common.executors</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/common/file/package-summary.html">com.facebook.common.file</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/common/internal/package-summary.html">com.facebook.common.internal</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/common/lifecycle/package-summary.html">com.facebook.common.lifecycle</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/common/logging/package-summary.html">com.facebook.common.logging</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/common/media/package-summary.html">com.facebook.common.media</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/common/memory/package-summary.html">com.facebook.common.memory</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/common/references/package-summary.html">com.facebook.common.references</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/common/statfs/package-summary.html">com.facebook.common.statfs</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/common/streams/package-summary.html">com.facebook.common.streams</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/common/time/package-summary.html">com.facebook.common.time</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/common/util/package-summary.html">com.facebook.common.util</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/common/webp/package-summary.html">com.facebook.common.webp</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/datasource/package-summary.html">com.facebook.datasource</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/drawable/base/package-summary.html">com.facebook.drawable.base</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/drawee/backends/pipeline/package-summary.html">com.facebook.drawee.backends.pipeline</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/drawee/backends/pipeline/debug/package-summary.html">com.facebook.drawee.backends.pipeline.debug</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/drawee/backends/pipeline/info/package-summary.html">com.facebook.drawee.backends.pipeline.info</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/drawee/backends/pipeline/info/internal/package-summary.html">com.facebook.drawee.backends.pipeline.info.internal</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/drawee/components/package-summary.html">com.facebook.drawee.components</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/drawee/controller/package-summary.html">com.facebook.drawee.controller</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/drawee/debug/package-summary.html">com.facebook.drawee.debug</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/drawee/debug/listener/package-summary.html">com.facebook.drawee.debug.listener</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/drawee/drawable/package-summary.html">com.facebook.drawee.drawable</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/drawee/generic/package-summary.html">com.facebook.drawee.generic</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/drawee/gestures/package-summary.html">com.facebook.drawee.gestures</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/drawee/interfaces/package-summary.html">com.facebook.drawee.interfaces</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/drawee/span/package-summary.html">com.facebook.drawee.span</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/drawee/view/package-summary.html">com.facebook.drawee.view</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/fresco/animation/backend/package-summary.html">com.facebook.fresco.animation.backend</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/fresco/animation/bitmap/package-summary.html">com.facebook.fresco.animation.bitmap</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/fresco/animation/bitmap/cache/package-summary.html">com.facebook.fresco.animation.bitmap.cache</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/fresco/animation/bitmap/preparation/package-summary.html">com.facebook.fresco.animation.bitmap.preparation</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/fresco/animation/bitmap/wrapper/package-summary.html">com.facebook.fresco.animation.bitmap.wrapper</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/fresco/animation/drawable/package-summary.html">com.facebook.fresco.animation.drawable</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/fresco/animation/drawable/animator/package-summary.html">com.facebook.fresco.animation.drawable.animator</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/fresco/animation/factory/package-summary.html">com.facebook.fresco.animation.factory</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/fresco/animation/frame/package-summary.html">com.facebook.fresco.animation.frame</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/fresco/middleware/package-summary.html">com.facebook.fresco.middleware</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/fresco/ui/common/package-summary.html">com.facebook.fresco.ui.common</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/imageformat/package-summary.html">com.facebook.imageformat</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/imagepipeline/animated/base/package-summary.html">com.facebook.imagepipeline.animated.base</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/imagepipeline/animated/factory/package-summary.html">com.facebook.imagepipeline.animated.factory</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/imagepipeline/animated/impl/package-summary.html">com.facebook.imagepipeline.animated.impl</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/imagepipeline/animated/util/package-summary.html">com.facebook.imagepipeline.animated.util</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/imagepipeline/backends/okhttp3/package-summary.html">com.facebook.imagepipeline.backends.okhttp3</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/imagepipeline/backends/volley/package-summary.html">com.facebook.imagepipeline.backends.volley</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/imagepipeline/bitmaps/package-summary.html">com.facebook.imagepipeline.bitmaps</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/imagepipeline/cache/package-summary.html">com.facebook.imagepipeline.cache</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/imagepipeline/common/package-summary.html">com.facebook.imagepipeline.common</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/imagepipeline/core/package-summary.html">com.facebook.imagepipeline.core</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/imagepipeline/datasource/package-summary.html">com.facebook.imagepipeline.datasource</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/imagepipeline/debug/package-summary.html">com.facebook.imagepipeline.debug</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/imagepipeline/decoder/package-summary.html">com.facebook.imagepipeline.decoder</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/imagepipeline/drawable/package-summary.html">com.facebook.imagepipeline.drawable</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/imagepipeline/filter/package-summary.html">com.facebook.imagepipeline.filter</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/imagepipeline/image/package-summary.html">com.facebook.imagepipeline.image</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/imagepipeline/instrumentation/package-summary.html">com.facebook.imagepipeline.instrumentation</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/imagepipeline/listener/package-summary.html">com.facebook.imagepipeline.listener</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/imagepipeline/memory/package-summary.html">com.facebook.imagepipeline.memory</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/imagepipeline/multiuri/package-summary.html">com.facebook.imagepipeline.multiuri</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/imagepipeline/nativecode/package-summary.html">com.facebook.imagepipeline.nativecode</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/imagepipeline/platform/package-summary.html">com.facebook.imagepipeline.platform</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/imagepipeline/postprocessors/package-summary.html">com.facebook.imagepipeline.postprocessors</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/imagepipeline/producers/package-summary.html">com.facebook.imagepipeline.producers</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/imagepipeline/request/package-summary.html">com.facebook.imagepipeline.request</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/imagepipeline/systrace/package-summary.html">com.facebook.imagepipeline.systrace</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/imagepipeline/transcoder/package-summary.html">com.facebook.imagepipeline.transcoder</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/imagepipeline/transformation/package-summary.html">com.facebook.imagepipeline.transformation</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/imageutils/package-summary.html">com.facebook.imageutils</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/webpsupport/package-summary.html">com.facebook.webpsupport</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/facebook/widget/text/span/package-summary.html">com.facebook.widget.text.span</a></li>
              </ul><br/>
            </div> <!-- end packages -->
          </div> <!-- end resize-packages -->
          <div id="classes-nav">
            <ul>
              
              
    <li><h2>Classes</h2>
      <ul>
          <li class="api apilevel-"><a href="../../../../com/facebook/animated/gif/GifFrame.html">GifFrame</a></li>
          <li class="selected api apilevel-"><a href="../../../../com/facebook/animated/gif/GifImage.html">GifImage</a></li>
      </ul>
    </li>
              
              
              
              
            </ul><br/>
          </div><!-- end classes -->
        </div><!-- end nav-panels -->
        <div id="nav-tree" style="display:none">
          <div id="index-links">
            <a href="../../../../packages.html"  >Packages</a> | 
            <a href="../../../../classes.html" >Classes</a>
          </div>
        </div><!-- end nav-tree -->
      </div><!-- end swapper -->
    </div> <!-- end side-nav -->
    <script>
      if (!isMobile) {
        //$("<a href='#' id='nav-swap' onclick='swapNav();return false;' style='font-size:10px;line-height:9px;margin-left:1em;text-decoration:none;'><span id='tree-link'>Use Tree Navigation</span><span id='panel-link' style='display:none'>Use Panel Navigation</span></a>").appendTo("#side-nav");
        chooseDefaultNav();
        if ($("#nav-tree").is(':visible')) {
          init_default_navtree("../../../../");
        } else {
          addLoadEvent(function() {
            scrollIntoView("packages-nav");
            scrollIntoView("classes-nav");
          });
        }
        //$("#swapper").css({borderBottom:"2px solid #aaa"});
      } else {
        swapNav(); // tree view should be used on mobile
      }
    </script>



<div class="g-unit" id="doc-content">

<div id="api-info-block">



  
   
  
  
  
  

  
   
  
  
   
  
  
  

  
   
  
  
  
  


<div class="sum-details-links">


Summary:






  <a href="#inhconstants">Inherited Constants</a>
  




  &#124; <a href="#pubctors">Ctors</a>
  



  &#124; <a href="#pubmethods">Methods</a>
  


  &#124; <a href="#promethods">Protected Methods</a>
  


  &#124; <a href="#inhmethods">Inherited Methods</a>

&#124; <a href="#" onclick="return toggleAllClassInherited()" id="toggleAllClassInherited">[Expand All]</a>

</div><!-- end sum-details-links -->
<div class="api-level">
  


  
  

</div>
</div><!-- end api-info-block -->


<!-- ======== START OF CLASS DATA ======== -->

<div id="jd-header">
    public
     
     
    
    class
<h1>GifImage</h1>



  
    extends Object<br/>
  
  
  

  
  
      implements 
      
        <a href="../../../../com/facebook/imagepipeline/animated/base/AnimatedImage.html">AnimatedImage</a> 
      
        <a href="../../../../com/facebook/imagepipeline/animated/factory/AnimatedImageDecoder.html">AnimatedImageDecoder</a> 
      
  
  


</div><!-- end header -->

<div id="naMessage"></div>

<div id="jd-content" class="api apilevel-">
<table class="jd-inheritance-table">


    <tr>
         	
        <td colspan="2" class="jd-inheritance-class-cell">java.lang.Object</td>
    </tr>
    

    <tr>
        
            <td class="jd-inheritance-space">&nbsp;&nbsp;&nbsp;&#x21b3;</td>
         	
        <td colspan="1" class="jd-inheritance-class-cell">com.facebook.animated.gif.GifImage</td>
    </tr>
    

</table>







<div class="jd-descr">


<h2>Class Overview</h2>
<p>A representation of a GIF image. An instance of this class will hold a copy of the encoded data
 in memory along with the parsed header data. Frames are decoded on demand via <code><a href="../../../../com/facebook/animated/gif/GifFrame.html">GifFrame</a></code>.
</p>





</div><!-- jd-descr -->
















<div class="jd-descr">


<h2>Summary</h2>
















<!-- =========== ENUM CONSTANT SUMMARY =========== -->
<table id="inhconstants" class="jd-sumtable"><tr><th>
  <a href="#" class="toggle-all" onclick="return toggleAllInherited(this, null)">[Expand]</a>
  <div style="clear:left;">Inherited Constants</div></th></tr>




<tr class="api apilevel-" >
<td colspan="12">

  <a href="#" onclick="return toggleInherited(this, null)" id="inherited-constants-com.facebook.imagepipeline.animated.base.AnimatedImage" class="jd-expando-trigger closed"
          ><img id="inherited-constants-com.facebook.imagepipeline.animated.base.AnimatedImage-trigger"
          src="../../../../../assets/images/triangle-closed.png"
          class="jd-expando-trigger-img" /></a>From interface
<a href="../../../../com/facebook/imagepipeline/animated/base/AnimatedImage.html">com.facebook.imagepipeline.animated.base.AnimatedImage</a>
<div id="inherited-constants-com.facebook.imagepipeline.animated.base.AnimatedImage">
  <div id="inherited-constants-com.facebook.imagepipeline.animated.base.AnimatedImage-list"
        class="jd-inheritedlinks">
  </div>
  <div id="inherited-constants-com.facebook.imagepipeline.animated.base.AnimatedImage-summary" style="display: none;">
    <table class="jd-sumtable-expando">
    

    
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">int</td>
        <td class="jd-linkcol"><a href="../../../../com/facebook/imagepipeline/animated/base/AnimatedImage.html#LOOP_COUNT_INFINITE">LOOP_COUNT_INFINITE</a></td>
        <td class="jd-descrcol" width="100%"></td>
    </tr>
    
    
</table>
  </div>
</div>
</td></tr>




</table>









<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<table id="pubctors" class="jd-sumtable"><tr><th colspan="12">Public Constructors</th></tr>



	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/facebook/animated/gif/GifImage.html#GifImage()">GifImage</a></span>()
        
  </td></tr>



</table>






<!-- ========== METHOD SUMMARY =========== -->
<table id="pubmethods" class="jd-sumtable"><tr><th colspan="12">Public Methods</th></tr>



	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            static
            
            <a href="../../../../com/facebook/animated/gif/GifImage.html">GifImage</a>
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/facebook/animated/gif/GifImage.html#createFromByteArray(byte[])">createFromByteArray</a></span>(byte[] source)
        
        <div class="jd-descrdiv">Creates a <code><a href="../../../../com/facebook/animated/gif/GifImage.html">GifImage</a></code> from the specified encoded data.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            static
            
            <a href="../../../../com/facebook/animated/gif/GifImage.html">GifImage</a>
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/facebook/animated/gif/GifImage.html#createFromByteBuffer(java.nio.ByteBuffer, com.facebook.imagepipeline.common.ImageDecodeOptions)">createFromByteBuffer</a></span>(ByteBuffer byteBuffer, <a href="../../../../com/facebook/imagepipeline/common/ImageDecodeOptions.html">ImageDecodeOptions</a> options)
        
        <div class="jd-descrdiv">Creates a <code><a href="../../../../com/facebook/animated/gif/GifImage.html">GifImage</a></code> from a ByteBuffer containing the image.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            static
            
            <a href="../../../../com/facebook/animated/gif/GifImage.html">GifImage</a>
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/facebook/animated/gif/GifImage.html#createFromByteBuffer(java.nio.ByteBuffer)">createFromByteBuffer</a></span>(ByteBuffer byteBuffer)
        
        <div class="jd-descrdiv">Creates a <code><a href="../../../../com/facebook/animated/gif/GifImage.html">GifImage</a></code> from a ByteBuffer containing the image.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            static
            
            <a href="../../../../com/facebook/animated/gif/GifImage.html">GifImage</a>
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/facebook/animated/gif/GifImage.html#createFromFileDescriptor(int, com.facebook.imagepipeline.common.ImageDecodeOptions)">createFromFileDescriptor</a></span>(int fileDescriptor, <a href="../../../../com/facebook/imagepipeline/common/ImageDecodeOptions.html">ImageDecodeOptions</a> options)
        
        <div class="jd-descrdiv">Creates a <code><a href="../../../../com/facebook/animated/gif/GifImage.html">GifImage</a></code> from a file descriptor containing the image.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            static
            
            <a href="../../../../com/facebook/animated/gif/GifImage.html">GifImage</a>
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/facebook/animated/gif/GifImage.html#createFromNativeMemory(long, int, com.facebook.imagepipeline.common.ImageDecodeOptions)">createFromNativeMemory</a></span>(long nativePtr, int sizeInBytes, <a href="../../../../com/facebook/imagepipeline/common/ImageDecodeOptions.html">ImageDecodeOptions</a> options)
        
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            <a href="../../../../com/facebook/imagepipeline/animated/base/AnimatedImage.html">AnimatedImage</a>
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/facebook/animated/gif/GifImage.html#decodeFromByteBuffer(java.nio.ByteBuffer, com.facebook.imagepipeline.common.ImageDecodeOptions)">decodeFromByteBuffer</a></span>(ByteBuffer byteBuffer, <a href="../../../../com/facebook/imagepipeline/common/ImageDecodeOptions.html">ImageDecodeOptions</a> options)
        
        <div class="jd-descrdiv">Factory method to create the AnimatedImage from a ByteBuffer</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            <a href="../../../../com/facebook/imagepipeline/animated/base/AnimatedImage.html">AnimatedImage</a>
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/facebook/animated/gif/GifImage.html#decodeFromNativeMemory(long, int, com.facebook.imagepipeline.common.ImageDecodeOptions)">decodeFromNativeMemory</a></span>(long nativePtr, int sizeInBytes, <a href="../../../../com/facebook/imagepipeline/common/ImageDecodeOptions.html">ImageDecodeOptions</a> options)
        
        <div class="jd-descrdiv">Factory method to create the AnimatedImage from a native pointer</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/facebook/animated/gif/GifImage.html#dispose()">dispose</a></span>()
        
        <div class="jd-descrdiv">Disposes the instance.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            boolean
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/facebook/animated/gif/GifImage.html#doesRenderSupportScaling()">doesRenderSupportScaling</a></span>()
        
        <div class="jd-descrdiv">Returns whether <code><a href="../../../../com/facebook/imagepipeline/animated/base/AnimatedImageFrame.html#renderFrame(int, int, android.graphics.Bitmap)">renderFrame(int, int, Bitmap)</a></code> supports scaling to arbitrary sizes or
 whether scaling must be done externally.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            int
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/facebook/animated/gif/GifImage.html#getDuration()">getDuration</a></span>()
        
        <div class="jd-descrdiv">Gets the duration of the animated image.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            <a href="../../../../com/facebook/animated/gif/GifFrame.html">GifFrame</a>
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/facebook/animated/gif/GifImage.html#getFrame(int)">getFrame</a></span>(int frameNumber)
        
        <div class="jd-descrdiv">Creates an <code><a href="../../../../com/facebook/imagepipeline/animated/base/AnimatedImageFrame.html">AnimatedImageFrame</a></code> at the specified index.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            int
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/facebook/animated/gif/GifImage.html#getFrameCount()">getFrameCount</a></span>()
        
        <div class="jd-descrdiv">Gets the number of frames in the image.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            int[]
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/facebook/animated/gif/GifImage.html#getFrameDurations()">getFrameDurations</a></span>()
        
        <div class="jd-descrdiv">Gets the duration of each frame of the animated image.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            <a href="../../../../com/facebook/imagepipeline/animated/base/AnimatedDrawableFrameInfo.html">AnimatedDrawableFrameInfo</a>
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/facebook/animated/gif/GifImage.html#getFrameInfo(int)">getFrameInfo</a></span>(int frameNumber)
        
        <div class="jd-descrdiv">Gets the frame info for the specified frame.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            int
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/facebook/animated/gif/GifImage.html#getHeight()">getHeight</a></span>()
        
        <div class="jd-descrdiv">Gets the height of the image (also known as the canvas in WebP nomenclature).</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            int
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/facebook/animated/gif/GifImage.html#getLoopCount()">getLoopCount</a></span>()
        
        <div class="jd-descrdiv">Gets the number of loops to run the animation for.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            int
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/facebook/animated/gif/GifImage.html#getSizeInBytes()">getSizeInBytes</a></span>()
        
        <div class="jd-descrdiv">Gets the size of bytes of the encoded image data (which is the data kept in memory for the
 image).</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            int
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/facebook/animated/gif/GifImage.html#getWidth()">getWidth</a></span>()
        
        <div class="jd-descrdiv">Gets the width of the image (also known as the canvas in WebP nomenclature).</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            boolean
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/facebook/animated/gif/GifImage.html#isAnimated()">isAnimated</a></span>()
        
  </td></tr>



</table>




<!-- ========== METHOD SUMMARY =========== -->
<table id="promethods" class="jd-sumtable"><tr><th colspan="12">Protected Methods</th></tr>



	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/facebook/animated/gif/GifImage.html#finalize()">finalize</a></span>()
        
  </td></tr>



</table>





<!-- ========== METHOD SUMMARY =========== -->
<table id="inhmethods" class="jd-sumtable"><tr><th>
  <a href="#" class="toggle-all" onclick="return toggleAllInherited(this, null)">[Expand]</a>
  <div style="clear:left;">Inherited Methods</div></th></tr>


<tr class="api apilevel-" >
<td colspan="12">
  <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-java.lang.Object" class="jd-expando-trigger closed"
          ><img id="inherited-methods-java.lang.Object-trigger"
          src="../../../../../assets/images/triangle-closed.png"
          class="jd-expando-trigger-img" /></a>
From class

  java.lang.Object

<div id="inherited-methods-java.lang.Object">
  <div id="inherited-methods-java.lang.Object-list"
        class="jd-inheritedlinks">
  </div>
  <div id="inherited-methods-java.lang.Object-summary" style="display: none;">
    <table class="jd-sumtable-expando">
    


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            Object
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad">clone</span>()
        
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            boolean
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad">equals</span>(Object arg0)
        
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad">finalize</span>()
        
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            final
            
            
            Class&lt;?&gt;
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad">getClass</span>()
        
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            int
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad">hashCode</span>()
        
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            final
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad">notify</span>()
        
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            final
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad">notifyAll</span>()
        
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            String
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad">toString</span>()
        
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            final
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad">wait</span>(long arg0, int arg1)
        
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            final
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad">wait</span>(long arg0)
        
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            final
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad">wait</span>()
        
  </td></tr>


</table>
  </div>
</div>
</td></tr>



<tr class="api apilevel-" >
<td colspan="12">
  <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-com.facebook.imagepipeline.animated.base.AnimatedImage" class="jd-expando-trigger closed"
          ><img id="inherited-methods-com.facebook.imagepipeline.animated.base.AnimatedImage-trigger"
          src="../../../../../assets/images/triangle-closed.png"
          class="jd-expando-trigger-img" /></a>
From interface

  <a href="../../../../com/facebook/imagepipeline/animated/base/AnimatedImage.html">com.facebook.imagepipeline.animated.base.AnimatedImage</a>

<div id="inherited-methods-com.facebook.imagepipeline.animated.base.AnimatedImage">
  <div id="inherited-methods-com.facebook.imagepipeline.animated.base.AnimatedImage-list"
        class="jd-inheritedlinks">
  </div>
  <div id="inherited-methods-com.facebook.imagepipeline.animated.base.AnimatedImage-summary" style="display: none;">
    <table class="jd-sumtable-expando">
    


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            abstract
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/facebook/imagepipeline/animated/base/AnimatedImage.html#dispose()">dispose</a></span>()
        
        <div class="jd-descrdiv">Disposes the instance.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            abstract
            
            
            
            
            boolean
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/facebook/imagepipeline/animated/base/AnimatedImage.html#doesRenderSupportScaling()">doesRenderSupportScaling</a></span>()
        
        <div class="jd-descrdiv">Returns whether <code><a href="../../../../com/facebook/imagepipeline/animated/base/AnimatedImageFrame.html#renderFrame(int, int, android.graphics.Bitmap)">renderFrame(int, int, Bitmap)</a></code> supports scaling to arbitrary sizes or
 whether scaling must be done externally.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            abstract
            
            
            
            
            int
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/facebook/imagepipeline/animated/base/AnimatedImage.html#getDuration()">getDuration</a></span>()
        
        <div class="jd-descrdiv">Gets the duration of the animated image.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            abstract
            
            
            
            
            <a href="../../../../com/facebook/imagepipeline/animated/base/AnimatedImageFrame.html">AnimatedImageFrame</a>
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/facebook/imagepipeline/animated/base/AnimatedImage.html#getFrame(int)">getFrame</a></span>(int frameNumber)
        
        <div class="jd-descrdiv">Creates an <code><a href="../../../../com/facebook/imagepipeline/animated/base/AnimatedImageFrame.html">AnimatedImageFrame</a></code> at the specified index.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            abstract
            
            
            
            
            int
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/facebook/imagepipeline/animated/base/AnimatedImage.html#getFrameCount()">getFrameCount</a></span>()
        
        <div class="jd-descrdiv">Gets the number of frames in the image.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            abstract
            
            
            
            
            int[]
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/facebook/imagepipeline/animated/base/AnimatedImage.html#getFrameDurations()">getFrameDurations</a></span>()
        
        <div class="jd-descrdiv">Gets the duration of each frame of the animated image.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            abstract
            
            
            
            
            <a href="../../../../com/facebook/imagepipeline/animated/base/AnimatedDrawableFrameInfo.html">AnimatedDrawableFrameInfo</a>
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/facebook/imagepipeline/animated/base/AnimatedImage.html#getFrameInfo(int)">getFrameInfo</a></span>(int frameNumber)
        
        <div class="jd-descrdiv">Gets the frame info for the specified frame.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            abstract
            
            
            
            
            int
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/facebook/imagepipeline/animated/base/AnimatedImage.html#getHeight()">getHeight</a></span>()
        
        <div class="jd-descrdiv">Gets the height of the image (also known as the canvas in WebP nomenclature).</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            abstract
            
            
            
            
            int
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/facebook/imagepipeline/animated/base/AnimatedImage.html#getLoopCount()">getLoopCount</a></span>()
        
        <div class="jd-descrdiv">Gets the number of loops to run the animation for.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            abstract
            
            
            
            
            int
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/facebook/imagepipeline/animated/base/AnimatedImage.html#getSizeInBytes()">getSizeInBytes</a></span>()
        
        <div class="jd-descrdiv">Gets the size of bytes of the encoded image data (which is the data kept in memory for the
 image).</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            abstract
            
            
            
            
            int
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/facebook/imagepipeline/animated/base/AnimatedImage.html#getWidth()">getWidth</a></span>()
        
        <div class="jd-descrdiv">Gets the width of the image (also known as the canvas in WebP nomenclature).</div>
  
  </td></tr>


</table>
  </div>
</div>
</td></tr>



<tr class="api apilevel-" >
<td colspan="12">
  <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-com.facebook.imagepipeline.animated.factory.AnimatedImageDecoder" class="jd-expando-trigger closed"
          ><img id="inherited-methods-com.facebook.imagepipeline.animated.factory.AnimatedImageDecoder-trigger"
          src="../../../../../assets/images/triangle-closed.png"
          class="jd-expando-trigger-img" /></a>
From interface

  <a href="../../../../com/facebook/imagepipeline/animated/factory/AnimatedImageDecoder.html">com.facebook.imagepipeline.animated.factory.AnimatedImageDecoder</a>

<div id="inherited-methods-com.facebook.imagepipeline.animated.factory.AnimatedImageDecoder">
  <div id="inherited-methods-com.facebook.imagepipeline.animated.factory.AnimatedImageDecoder-list"
        class="jd-inheritedlinks">
  </div>
  <div id="inherited-methods-com.facebook.imagepipeline.animated.factory.AnimatedImageDecoder-summary" style="display: none;">
    <table class="jd-sumtable-expando">
    


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            abstract
            
            
            
            
            <a href="../../../../com/facebook/imagepipeline/animated/base/AnimatedImage.html">AnimatedImage</a>
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/facebook/imagepipeline/animated/factory/AnimatedImageDecoder.html#decodeFromByteBuffer(java.nio.ByteBuffer, com.facebook.imagepipeline.common.ImageDecodeOptions)">decodeFromByteBuffer</a></span>(ByteBuffer byteBuffer, <a href="../../../../com/facebook/imagepipeline/common/ImageDecodeOptions.html">ImageDecodeOptions</a> options)
        
        <div class="jd-descrdiv">Factory method to create the AnimatedImage from a ByteBuffer</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            abstract
            
            
            
            
            <a href="../../../../com/facebook/imagepipeline/animated/base/AnimatedImage.html">AnimatedImage</a>
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/facebook/imagepipeline/animated/factory/AnimatedImageDecoder.html#decodeFromNativeMemory(long, int, com.facebook.imagepipeline.common.ImageDecodeOptions)">decodeFromNativeMemory</a></span>(long nativePtr, int sizeInBytes, <a href="../../../../com/facebook/imagepipeline/common/ImageDecodeOptions.html">ImageDecodeOptions</a> options)
        
        <div class="jd-descrdiv">Factory method to create the AnimatedImage from a native pointer</div>
  
  </td></tr>


</table>
  </div>
</div>
</td></tr>


</table>


</div><!-- jd-descr (summary) -->

<!-- Details -->








<!-- XML Attributes -->


<!-- Enum Values -->


<!-- Constants -->


<!-- Fields -->


<!-- Public ctors -->


<!-- ========= CONSTRUCTOR DETAIL ======== -->
<h2>Public Constructors</h2>



<a id="GifImage()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        
      </span>
      <span class="sympad">GifImage</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>

    </div>
</div>





<!-- ========= CONSTRUCTOR DETAIL ======== -->
<!-- Protected ctors -->



<!-- ========= METHOD DETAIL ======== -->
<!-- Public methdos -->

<h2>Public Methods</h2>



<a id="createFromByteArray(byte[])"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
        static 
         
         
         
        <a href="../../../../com/facebook/animated/gif/GifImage.html">GifImage</a>
      </span>
      <span class="sympad">createFromByteArray</span>
      <span class="normal">(byte[] source)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Creates a <code><a href="../../../../com/facebook/animated/gif/GifImage.html">GifImage</a></code> from the specified encoded data. This will throw if it fails to
 create. This is meant to be called on a worker thread.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>source</th>
          <td>the data to the image (a copy will be made)
</td>
        </tr>
      </table>
  </div>

    </div>
</div>


<a id="createFromByteBuffer(java.nio.ByteBuffer, com.facebook.imagepipeline.common.ImageDecodeOptions)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
        static 
         
         
         
        <a href="../../../../com/facebook/animated/gif/GifImage.html">GifImage</a>
      </span>
      <span class="sympad">createFromByteBuffer</span>
      <span class="normal">(ByteBuffer byteBuffer, <a href="../../../../com/facebook/imagepipeline/common/ImageDecodeOptions.html">ImageDecodeOptions</a> options)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Creates a <code><a href="../../../../com/facebook/animated/gif/GifImage.html">GifImage</a></code> from a ByteBuffer containing the image. This will throw if it fails
 to create.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>byteBuffer</th>
          <td>the ByteBuffer containing the image (a copy will be made)
</td>
        </tr>
      </table>
  </div>

    </div>
</div>


<a id="createFromByteBuffer(java.nio.ByteBuffer)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
        static 
         
         
         
        <a href="../../../../com/facebook/animated/gif/GifImage.html">GifImage</a>
      </span>
      <span class="sympad">createFromByteBuffer</span>
      <span class="normal">(ByteBuffer byteBuffer)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Creates a <code><a href="../../../../com/facebook/animated/gif/GifImage.html">GifImage</a></code> from a ByteBuffer containing the image. This will throw if it fails
 to create.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>byteBuffer</th>
          <td>the ByteBuffer containing the image (a copy will be made)
</td>
        </tr>
      </table>
  </div>

    </div>
</div>


<a id="createFromFileDescriptor(int, com.facebook.imagepipeline.common.ImageDecodeOptions)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
        static 
         
         
         
        <a href="../../../../com/facebook/animated/gif/GifImage.html">GifImage</a>
      </span>
      <span class="sympad">createFromFileDescriptor</span>
      <span class="normal">(int fileDescriptor, <a href="../../../../com/facebook/imagepipeline/common/ImageDecodeOptions.html">ImageDecodeOptions</a> options)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Creates a <code><a href="../../../../com/facebook/animated/gif/GifImage.html">GifImage</a></code> from a file descriptor containing the image. This will throw if it
 fails to create.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>fileDescriptor</th>
          <td>the file descriptor containing the image (a copy will be made)
</td>
        </tr>
      </table>
  </div>

    </div>
</div>


<a id="createFromNativeMemory(long, int, com.facebook.imagepipeline.common.ImageDecodeOptions)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
        static 
         
         
         
        <a href="../../../../com/facebook/animated/gif/GifImage.html">GifImage</a>
      </span>
      <span class="sympad">createFromNativeMemory</span>
      <span class="normal">(long nativePtr, int sizeInBytes, <a href="../../../../com/facebook/imagepipeline/common/ImageDecodeOptions.html">ImageDecodeOptions</a> options)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>

    </div>
</div>


<a id="decodeFromByteBuffer(java.nio.ByteBuffer, com.facebook.imagepipeline.common.ImageDecodeOptions)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        <a href="../../../../com/facebook/imagepipeline/animated/base/AnimatedImage.html">AnimatedImage</a>
      </span>
      <span class="sympad">decodeFromByteBuffer</span>
      <span class="normal">(ByteBuffer byteBuffer, <a href="../../../../com/facebook/imagepipeline/common/ImageDecodeOptions.html">ImageDecodeOptions</a> options)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Factory method to create the AnimatedImage from a ByteBuffer</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>byteBuffer</th>
          <td>The ByteBuffer containing the image</td>
        </tr>
        <tr>
          <th>options</th>
          <td>The options for decoding</td>
        </tr>
      </table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>The AnimatedImage allocation
</li></ul>
  </div>

    </div>
</div>


<a id="decodeFromNativeMemory(long, int, com.facebook.imagepipeline.common.ImageDecodeOptions)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        <a href="../../../../com/facebook/imagepipeline/animated/base/AnimatedImage.html">AnimatedImage</a>
      </span>
      <span class="sympad">decodeFromNativeMemory</span>
      <span class="normal">(long nativePtr, int sizeInBytes, <a href="../../../../com/facebook/imagepipeline/common/ImageDecodeOptions.html">ImageDecodeOptions</a> options)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Factory method to create the AnimatedImage from a native pointer</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>nativePtr</th>
          <td>The native pointer</td>
        </tr>
        <tr>
          <th>sizeInBytes</th>
          <td>The size in byte to allocate</td>
        </tr>
        <tr>
          <th>options</th>
          <td>The options for decoding</td>
        </tr>
      </table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>The AnimatedImage allocation
</li></ul>
  </div>

    </div>
</div>


<a id="dispose()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">dispose</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Disposes the instance. This will free native resources held by this instance. Once called,
 other methods on this instance may throw. Note, the underlying native resources may not
 actually be freed until all associated instances of <code><a href="../../../../com/facebook/imagepipeline/animated/base/AnimatedImageFrame.html">AnimatedImageFrame</a></code> are disposed or
 finalized as well.
</p></div>

    </div>
</div>


<a id="doesRenderSupportScaling()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        boolean
      </span>
      <span class="sympad">doesRenderSupportScaling</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Returns whether <code><a href="../../../../com/facebook/imagepipeline/animated/base/AnimatedImageFrame.html#renderFrame(int, int, android.graphics.Bitmap)">renderFrame(int, int, Bitmap)</a></code> supports scaling to arbitrary sizes or
 whether scaling must be done externally.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>whether rendering supports scaling
</li></ul>
  </div>

    </div>
</div>


<a id="getDuration()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        int
      </span>
      <span class="sympad">getDuration</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Gets the duration of the animated image.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>the duration of the animated image in milliseconds
</li></ul>
  </div>

    </div>
</div>


<a id="getFrame(int)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        <a href="../../../../com/facebook/animated/gif/GifFrame.html">GifFrame</a>
      </span>
      <span class="sympad">getFrame</span>
      <span class="normal">(int frameNumber)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Creates an <code><a href="../../../../com/facebook/imagepipeline/animated/base/AnimatedImageFrame.html">AnimatedImageFrame</a></code> at the specified index.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>frameNumber</th>
          <td>the index of the frame</td>
        </tr>
      </table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>a newly created <code><a href="../../../../com/facebook/imagepipeline/animated/base/AnimatedImageFrame.html">AnimatedImageFrame</a></code>
</li></ul>
  </div>

    </div>
</div>


<a id="getFrameCount()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        int
      </span>
      <span class="sympad">getFrameCount</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Gets the number of frames in the image.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>the number of frames in the image
</li></ul>
  </div>

    </div>
</div>


<a id="getFrameDurations()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        int[]
      </span>
      <span class="sympad">getFrameDurations</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Gets the duration of each frame of the animated image.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>an array that is the size of the number of frames containing the duration of each frame
     in milliseconds
</li></ul>
  </div>

    </div>
</div>


<a id="getFrameInfo(int)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        <a href="../../../../com/facebook/imagepipeline/animated/base/AnimatedDrawableFrameInfo.html">AnimatedDrawableFrameInfo</a>
      </span>
      <span class="sympad">getFrameInfo</span>
      <span class="normal">(int frameNumber)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Gets the frame info for the specified frame.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>frameNumber</th>
          <td>the frame to get the info for</td>
        </tr>
      </table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>the frame info
</li></ul>
  </div>

    </div>
</div>


<a id="getHeight()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        int
      </span>
      <span class="sympad">getHeight</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Gets the height of the image (also known as the canvas in WebP nomenclature).</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>the height of the image
</li></ul>
  </div>

    </div>
</div>


<a id="getLoopCount()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        int
      </span>
      <span class="sympad">getLoopCount</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Gets the number of loops to run the animation for.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>the number of loops, or 0 to indicate infinite
</li></ul>
  </div>

    </div>
</div>


<a id="getSizeInBytes()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        int
      </span>
      <span class="sympad">getSizeInBytes</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Gets the size of bytes of the encoded image data (which is the data kept in memory for the
 image).</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>the size in bytes of the encoded image data
</li></ul>
  </div>

    </div>
</div>


<a id="getWidth()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        int
      </span>
      <span class="sympad">getWidth</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Gets the width of the image (also known as the canvas in WebP nomenclature).</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>the width of the image
</li></ul>
  </div>

    </div>
</div>


<a id="isAnimated()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        boolean
      </span>
      <span class="sympad">isAnimated</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>

    </div>
</div>





<!-- ========= METHOD DETAIL ======== -->

<h2>Protected Methods</h2>



<a id="finalize()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        protected 
         
         
         
         
        void
      </span>
      <span class="sympad">finalize</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>

    </div>
</div>





<!-- ========= END OF CLASS DATA ========= -->
<a id="navbar_top"></a>

<div id="footer">
 +Generated by <a href="http://code.google.com/p/doclava/">Doclava</a>.
 +</div> <!-- end footer - @generated -->

</div> <!-- jd-content -->

</div><!-- end doc-content -->

</div> <!-- end body-content --> 

<script type="text/javascript">
init(); /* initialize doclava-developer-docs.js */
</script>

</body>
</html>
